package com.shop.core;

import java.io.Serializable;

/**
 * 
 * @Title RunLinResult
 *        </p>
 * @Project runlin-framework
 * @Package com.runlin.framework.mvc
 * @author Kevin Lv
 * @date 2016年8月15日 下午4:13:30
 * @version V1.0
 */
public class HttpMessageResult implements Serializable {

	private static final long serialVersionUID = 5884245135656636463L;

	private Integer status;

	private String message;

	private Object data;

	public HttpMessageResult() {

	}

	public static HttpMessageResult doHttp(Integer status, String message, Object data) {
		return new HttpMessageResult(status, message, data);
	}

	public static HttpMessageResult doHttp(Integer status, String message) {
		return new HttpMessageResult(status, message, null);
	}

	public HttpMessageResult(Integer status, String message, Object data) {
		this.status = status;
		this.message = message;
		this.data = data;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
